package com.taozitongxue.string;

import java.util.Objects;

public class StringDemo {
    public static void main(String[] args) {

        boolean equals = Objects.equals("小坤坤", new String("小坤坤"));
        System.out.println(equals);
        boolean equals02 = Objects.equals("小坤坤", new String("小"+"坤坤"));
        System.out.println(equals02);
    }
}
